
#include "LibraryInterface.h"

int main(int argc, char *argv[])
{
	//select the platform library
	LibraryInterface::Initialize();
	
	//test print statement
	LibraryInterface::Print("SDL working in Visual C++ 2008");

	// Main loop: loop forever.
    while (1)
    {
        // Render stuff
        LibraryInterface::render();

        // Poll for events, and handle the ones we care about.
        SDL_Event event;
        while (SDL_PollEvent(&event)) 
        {
            switch (event.type) 
            {
            case SDL_KEYDOWN:
                break;
            case SDL_KEYUP:
                // If escape is pressed, return (and thus, quit)
                if (event.key.keysym.sym == SDLK_ESCAPE)
                    return 0;
                break;
            case SDL_QUIT:
                return(0);
            }
        }
    }

	//deinitialize routines for the platform library
	LibraryInterface::Deinitialize();

	//end program
	return 0;
}
